Dynamicweb 8 Documentation
ToItem<T>(ItemType,T,Boolean) Method

Item type.
Item metadata.
Previous state of the item (for values that were not populated on the form).
Value indicating whether to automatically flush the given form state from the current HTTP session.
Reads the current form from the request and constructs the item instance from the form values.
Syntax
'Declaration
 
Public Overloads Shared Function ToItem(Of T As {New, ItemEntry})( _ 
   ByVal itemMeta As ItemType, _ 
   ByVal previousState As T, _
   ByVal cleanup As Boolean _ 
) As T
public static T ToItem<T>( 
   ItemType itemMeta,
   T previousState,
   bool cleanup
)
where T: new(), ItemEntry

Parameters

itemMeta
Item metadata.
previousState
Previous state of the item (for values that were not populated on the form).
cleanup
Value indicating whether to automatically flush the given form state from the current HTTP session.

Type Parameters

T
Item type.

Return Value

Item instance.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EditForm Class
EditForm Members
Overload List

Send Feedback